<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewStaffTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewStaffLabel_staffId}"/>
                    <h:outputText value="#{staffController.selected.staffId}" title="#{bundle.ViewStaffTitle_staffId}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_type}"/>
                    <h:outputText value="#{staffController.selected.type}" title="#{bundle.ViewStaffTitle_type}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_userName}"/>
                    <h:outputText value="#{staffController.selected.userName}" title="#{bundle.ViewStaffTitle_userName}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_password}"/>
                    <h:outputText value="#{staffController.selected.password}" title="#{bundle.ViewStaffTitle_password}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_fullName}"/>
                    <h:outputText value="#{staffController.selected.fullName}" title="#{bundle.ViewStaffTitle_fullName}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_address}"/>
                    <h:outputText value="#{staffController.selected.address}" title="#{bundle.ViewStaffTitle_address}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_dateOfBirth}"/>
                    <h:outputText value="#{staffController.selected.dateOfBirth}" title="#{bundle.ViewStaffTitle_dateOfBirth}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewStaffLabel_gender}"/>
                    <h:outputText value="#{staffController.selected.gender}" title="#{bundle.ViewStaffTitle_gender}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_email}"/>
                    <h:outputText value="#{staffController.selected.email}" title="#{bundle.ViewStaffTitle_email}"/>
                    <h:outputText value="#{bundle.ViewStaffLabel_phone}"/>
                    <h:outputText value="#{staffController.selected.phone}" title="#{bundle.ViewStaffTitle_phone}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{staffController.destroyAndView}" value="#{bundle.ViewStaffDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewStaffEditLink}"/>
                <br />
                <h:commandLink action="#{staffController.prepareCreate}" value="#{bundle.ViewStaffCreateLink}" />
                <br />
                <h:commandLink action="#{staffController.prepareList}" value="#{bundle.ViewStaffShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewStaffIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
